package com.ricchieri.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.ricchieri.dao.interf.ICharterExpenseTypeDao;
import com.ricchieri.filter.BasicFilter;
import com.ricchieri.model.CharterExpenseType;
import com.ricchieri.service.interf.ICharterExpenseTypeService;

@Transactional(readOnly = true)
public class CharterExpenseTypeService implements ICharterExpenseTypeService, Serializable {
	private static final long serialVersionUID = 1376645231664107497L;
	
	ICharterExpenseTypeDao charterExpenseTypeDao;
	
	@Override
	@Transactional(readOnly = true)
	public List<CharterExpenseType> getAllCharterExpenseTypes() {
		BasicFilter filter = new BasicFilter();
		return charterExpenseTypeDao.getAllCharterExpenseTypes(filter);
	}

	public ICharterExpenseTypeDao getCharterExpenseTypeDao() {
		return charterExpenseTypeDao;
	}

	public void setCharterExpenseTypeDao(ICharterExpenseTypeDao charterTypeDao) {
		this.charterExpenseTypeDao = charterTypeDao;
	}
}
